package com.ostrich.note.ui.settings.viewmodel;


import com.ostrich.note.entity.BaseResponseEntity;
import com.ostrich.note.ui.note.entity.NoteEntity;
import com.ostrich.note.ui.note.entity.TypeEntity;
import com.ostrich.note.ui.settings.repository.SettingsRepository;

import java.util.List;

import androidx.lifecycle.LiveData;
import androidx.lifecycle.ViewModel;

public class SettingsTypeViewModel extends ViewModel {
    private SettingsRepository mSettingsRepository = new SettingsRepository();
    public LiveData<BaseResponseEntity<TypeEntity>> notepadClassifiedData(){
        return mSettingsRepository.notepadClassifiedData();
    }

    public LiveData<BaseResponseEntity> notepadClassDel(int type_id){
        return mSettingsRepository.notepadClassDel(type_id);
    }

    public LiveData<BaseResponseEntity> insertNotepadType(String title,int color){
        return mSettingsRepository.insertNotepadType(title,color);
    }




    public LiveData<BaseResponseEntity> notepadTitleEdit(String title,int color, int type_id){
        return mSettingsRepository.notepadTitleEdit(title,color,type_id);
    }




}
